package com.xiaoxing.salesclient.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaoxing.salesclient.mvp.ui.entity.HuoDongList;

import java.util.List;

import xiaoxing.com.salesclient.R;


public class HuoDongListAdapter extends BaseQuickAdapter<HuoDongList, BaseViewHolder> {
    private Context mContext;

    public HuoDongListAdapter(Context context, @Nullable List<HuoDongList> data) {
        super(R.layout.item_huo_dong_list, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, HuoDongList item) {
        Glide.with(mContext).load(item.getImg_url()).into((ImageView) helper.getView(R.id.img));
    }

}
